SUPPORT / SAMPLES & SAS NOTES
 

Support

Usage Note 65885: The ability to connect to a Google BigQuery database via OAuth Authentication has been added to SAS/ACCESS® Interface to Google BigQuery

DetailsHotfixAboutRate It

The ability to connect to a Google BigQuery database via OAuth is now available with this hot fix. Three new options have been added, REFRESH_TOKEN=, CLIENT_ID=, and CLIENT_SECRET=. You can use these options with the following connection methods to the Google BigQuery database:

LIBNAME GBQ BIGQUERY REFRESH_TOKEN="<token>" CLIENT_ID="<client_id>" CLIENT_SECRET=<client_secret> ...;

PROC SQL; CONNECT TO BIGQUERY(REFRESH_TOKEN="<token>" CLIENT_ID="<client_id>" CLIENT_SECRET=<client_secret> ...);

PROC FEDSQL NOLIB CONN=(DRIVER=FEDSQL;CONOPTS=(DRIVER=BIGQUERY;REFRESH_TOKEN="<token>"; CLIENT_ID="<client_id>";CLIENT_SECRET=<client_secret>;...));

CASLIB GBQ DATASOURCE=(srctype="bigquery", REFRESH_TOKEN="<token>",CLIENT_ID="<client_id>",CLIENT_SECRET="<client_secret>" ,...);

A utility has been created to generate the refresh token that is needed for OAuth authentication. This utility can be downloaded from the SAS/ACCESS to Google BigQuery Tools Downloads page. The ReadME file contains a link to usage information about the getRefreshToken utility.

Click the Hot Fix tab in this note to access the hot fix for this issue.



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS/ACCESS Interface to Google BigQueryLinux for x649.419.429.4 TS1M69.4 TS1M7
SAS SystemSAS Data Connector to Google BigQueryLinux for x64V.03.052020.1.1ViyaViya
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.